import React from 'react'
import {BrowserRouter,HashRouter,Routes,Route, Link} from 'react-router-dom';
import Reg from '../pages/antd/Reg';
import Login from '../pages/antd/Login';
import Manage from '../pages/antd/Manage';
import Student from '../pages/antd/Student';
import Cls from '../pages/Cls';
import Teacher from '../pages/Teacher';
import Test from '../pages/Test';
import TestRedux from '../pages/TestRedux';
export default function index() {
  return (
    <BrowserRouter>
        <Routes>
            <Route path='/' element={<Reg />}></Route>
            <Route path='/reg' element={<Reg />}></Route>
            <Route path='/login' element={<Login />}></Route>
            <Route path='/manage' element={<Manage />}>
                <Route path='student' element={<Student />}></Route>
                <Route path='class' element={<Cls />}></Route>
                <Route path='teacher' element={<Teacher />}></Route>
            </Route>
            
            <Route path='/test' element={<Test />}></Route>
            <Route path='/testRedux' element={<TestRedux />}></Route>
        </Routes>
    </BrowserRouter>
  )
}
